<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page import="com.lukebang.util.RSAUtils"%>
<%@ page import="java.util.HashMap"%>
<%@ page import="java.util.Map"%>
<%@ page import="java.security.interfaces.*"%>
<c:set var="ctxPath" value="${pageContext.request.contextPath}"
	scope="application" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="">
<meta name="author" content="ThemeBucket">
<link rel="shortcut icon" type="image/x-icon"
	href="${ctxPath }/static/images/lukebang320.ico" media="screen" />
<link rel="icon" href="${ctxPath }/static/images/lukebang320.ico"
	type="image/x-icon" />
<link rel="bookmark" href="${ctxPath }/static/images/lukebang320.ico"
	type="image/x-icon" />
<link
	href="${ctxPath }/static/js/bootstrap-touchspin/bootstrap.touchspin.min.css"
	rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css"
	href="${ctxPath }/static/js/bootstrap-timepicker/css/timepicker.css" />
<link rel="stylesheet" type="text/css"
	href="${ctxPath }/static/js/bootstrap-datetimepicker2/css/datetimepicker-custom.css" />
<link href="${ctxPath}/static/css/jquery.stepy.css" rel="stylesheet">
<title>新建维修订单</title>
<style type="text/css">
.validateFontSize {
	font-size: 12px;
}
</style>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
  <script src="js/html5shiv.js"></script>
  <script src="js/respond.min.js"></script>
  <![endif]-->
  <%
	HashMap<String, Object> map = RSAUtils.getKeys();
	//生成公钥和私钥    
	RSAPublicKey publicKey = (RSAPublicKey) map.get("public");
	RSAPrivateKey privateKey = (RSAPrivateKey) map.get("private");
	session.setAttribute("privateKey", privateKey);//私钥保存在session中，用于解密  
	//公钥信息保存在页面，用于加密  
	String publicKeyExponent = publicKey.getPublicExponent().toString(16); //公钥指数   
	String publicKeyModulus = publicKey.getModulus().toString(16); //模    
	request.setAttribute("publicKeyExponent", publicKeyExponent);
	request.setAttribute("publicKeyModulus", publicKeyModulus);
%>
</head>
<body class="sticky-header"
	onload="indexmenu('${oneMenu}','${twoMenu}');">
	<%@ include file="../index/index.jsp"%>
	<section>
		<div class="main-content">
			<!-- 地址栏-->
			<div class="page-heading">
				<h3>鹿客帮下单</h3>
				<ul class="breadcrumb">
					<li><a>任务管理</a></li>
					<li class="active">下维修单</li>
				</ul>
			</div>
			<!--这里是写一些内容的  -->
			<h3>&nbsp;&nbsp;&nbsp;下维修订单:</h3>
			<form id="addRepairIndentForm"
				class="form-horizontal left-align form-well">
				<div class="form-group">
					<label class="col-md-2 col-sm-2 control-label">顾客姓名：</label>
					<div class="col-md-4">
						<input type="text" style="display: none" /> <input type="text"
							placeholder="顾客姓名" class="form-control" name="name">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-2 col-sm-2 control-label">电话：</label>
					<div class="col-md-4">
						<input type="text" placeholder="电话"
							onkeyup="this.value=this.value.replace(/\D/g,'')" maxlength="11"
							class="form-control" name="phone">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-2 col-sm-2 control-label">维修时间：</label>
					<div class="col-md-4">
						<input size="16" type="text" readonly
							class="form_datetime-meridian form-control" name="subscribeTime">
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-2 col-sm-2 control-label">维修内容：</label>
					<div class="col-md-4">
						<textarea class="form-control" name="weiXbody" rows="2"></textarea>
					</div>
				</div>
				<div class="form-group form-inline">
					<label class="col-md-2 col-sm-2 control-label">地址：</label>
					<div>
						<div class="col-sm-1">
							<select class="form-control" name="province" id="Province"
								style="width: 139px;">
								<option value="999999">省</option>
							</select>
						</div>
						<div class="col-sm-1">
							<select class="form-control" name="city" id="City"
								style="width: 139px;">
								<option value="999999">市</option>
							</select>
						</div>
						<div class="col-sm-1">
							<select class="form-control" name="country" id="countrySelect"
								style="width: 139px;">
								<option value="999999">区</option>
							</select>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-2 col-sm-2 control-label">详细地址：</label>
					<div class="col-md-4">
						<textarea name="repairAddress" placeholder="详细地址" rows="2"
							class="form-control"></textarea>
					</div>
				</div>
				<div class="form-group">
					<label class="col-md-2 col-sm-2 control-label">是否需要取货：</label>
					<div class="radio-list">
						&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="isNeedTakeGoods"
							onchange="changeNeedPickUpForIndent(this)" value="0" checked style="margin: 9px 0px 0;" id="dontNeedTakeGoods">
						<label for="dontNeedTakeGoods" style="display: inline;">不需要取货</label> &nbsp;&nbsp;&nbsp; <input type="radio"
							name="isNeedTakeGoods" value="1"
							onchange="changeNeedPickUpForIndent(this)" style="margin:4px 3px 0;" id="needTakeGoods"><label for="needTakeGoods" style="display: inline;">需要取货</label>&nbsp;&nbsp;<input
							id="input_needPickupPrice" type="text" readonly
							style="width: 100px; background: transparent; border: 0">
					</div>
				</div>
				<div id="pickupDetailDIV" style="display: none">
					<div class="form-group">
						<label class="col-md-2 col-sm-2 control-label">联系人手机：</label>
						<div class="col-md-4">
							<input type="text" placeholder="联系人手机" class="form-control"
								maxlength="11" onkeyup="this.value=this.value.replace(/\D/g,'')"
								name="pickupPhone" id="pickUpPhoneTxt">
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-2 col-sm-2 control-label">取货地址：</label>
						<div>
							<div class="col-sm-1">
								<select class="form-control" name="pickupProvince"
									id="pickupProvince" style="width: 129px;">
									<option value="999999">省</option>
								</select>
							</div>
							<div class="col-sm-1">
								<select class="form-control" name="pickupCity" id="pickupCity"
									style="width: 129px;">
									<option value="999999">市</option>
								</select>
							</div>
							<div class="col-sm-1">
								<select class="form-control" name="pickupCountry"
									id="pickupCountrySelect" style="width: 129px;">
									<option value="999999">区</option>
								</select>
							</div>
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-2 col-sm-2 control-label">取货详细地址：</label>
						<div class="col-md-4">
							<textarea name="pickAddress" placeholder="详细地址" rows="2"
								class="form-control"></textarea>
						</div>
					</div>
				</div>
				<!-- <div class="form-group">
					<label class="col-md-2 col-sm-2 control-label">基本维修费：</label>
					<div class="col-md-4">
						<input type="text" placeholder="基本维修费" readonly
							class="form-control"
							style="width: 100px; background: transparent; border: 0"
							id="txt_basicRepairPrice">
					</div>
				</div> -->
			</form>
			<div class="form-actions">
				<button class="btn btn-info"
					style="position: relative; float: right; margin-right: 30em; width: 90px"
					onclick="makeRepairIndent(this)">生成订单</button>
			</div>
		</div>
	</section>

<jsp:include page="../taskList/payMoney.jsp" >
	<jsp:param value="2" name="type"/>
</jsp:include>
<jsp:include page="../taskList/password.jsp"></jsp:include>
</body>
<script src="${ctxPath}/static/js/security/security.js"></script>
<script src="${ctxPath}/static/js/jquery.validate.min.js"></script>
<script type="text/javascript"
	src="${ctxPath }/static/js/bootstrap-datetimepicker2/js/bootstrap-datetimepicker.js"></script>
<script
	src="${ctxPath }/static/js/bootstrap-touchspin/bootstrap.touchspin.min.js"
	type="text/javascript"></script>
<script src="${ctxPath }/static/js/pickers-init.js"></script>
<script src="${ctxPath}/static/js/custom/newTask/addRepair.js"></script>
</html>
